﻿using System.Data.OleDb;
using Miado.Configuration;

namespace Miado.Databases
{
    /// <summary>
    /// This class represents a database that will be connected to using OLE.
    /// </summary>
    public class OleDatabase : Database
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="OleDatabase"/> class.
        /// </summary>
        /// <param name="connString">The connection string.</param>
        public OleDatabase(string connString) : base(OleDbFactory.Instance, connString)
		{
			var paramParser = new LegacyParameterParser();
            UsingSourceCodeSyntax(paramParser).MapSourceCodeSyntaxTo(paramParser);			
		}
    }
}
